import numpy as np
# 一维数组
arr1d = np.array([1, 2, 3, 4, 5])
print(arr1d) # 输出: [1 2 3 4 5]

# 二维数组
arr2d = np.array([[1, 2, 3], [4, 5, 6]])
print(arr2d)
# 输出:
# [[1 2 3]
#  [4 5 6]]

# 指定数据类型
arr_float = np.array([1, 2, 3], dtype=np.float64)
print(arr_float) # 输出: [1. 2. 3.]